package com.trajan.exercise.javaapi;

/*

   Created with IntelliJ IDEA.

   Ing. Tomáš Herich
   --------------------------- 
   19. 06. 2013
   2:08 PM

*/

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class HashMapExample {

    public static void main(String[] args) {


        Map map = new HashMap();

        map.put("test","test value");
        map.put("test","another test value");
        map.put("test1","test1 value");
        map.put("test2","test2 value");

        Set<String> keys = map.keySet();

        for (String key : keys) {

            System.out.println(map.get(key));

        }


    }
}
